package com.bluefish.bltuan.service;

import java.util.List;

import com.bluefish.bltuan.module.Category;
import com.bluefish.bltuan.module.shop.TuanGou;
import com.bluefish.bltuan.util.PageIndex;

public interface ShopService extends BasicService<TuanGou, Integer>{

	boolean publish(TuanGou t);
	
	void unpublish(TuanGou t);
	
	TuanGou getTuangouToday(Integer cityId);
	
	TuanGou getTuangouToday();
	
	List<TuanGou> listOldTuangou();
	
	List<TuanGou> listOldTuangou(PageIndex pageIndex);
	
	List<TuanGou> listOldTuangou(int size);
	
	List<TuanGou> list(PageIndex pageIndex);

	void saveOrUpdate(TuanGou t);

	List<TuanGou> listOldTuangou(PageIndex pageIndex, Category city);

	List<TuanGou> listFutureTuangou(PageIndex pageIndex, Category city);

	TuanGou getTuangouToday(Category currentCity);

	TuanGou getPublishedTuangouToday(Category currentCity);

	List<TuanGou> listPublishedOldTuans(PageIndex pageIndex, Category category);
	
	List<TuanGou> listPublishedPastTuans(PageIndex pageIndex, Category category);

	TuanGou getPublishedTuanByNick(String nick);
}
